import { Provider, ReactReduxContext } from 'react-redux';
import React from 'react';
import { catchError } from '@/hoc';
import JokeDetail from './components/joke-detail';
import GetJoke from './components/get-joke';
import store from './store';

const Joke = () => (
  <Provider store={store} context={ReactReduxContext}>
    <GetJoke />
    <JokeDetail />
  </Provider>
);

export default catchError(Joke);
